package Mangos::DB::Characters::CharacterQueststatus;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'character_queststatus',

    columns => 
    [
        guid       => { type => 'integer', not_null => 1 },
        quest      => { type => 'integer', not_null => 1 },
        status     => { type => 'integer', default => '0', not_null => 1 },
        rewarded   => { type => 'integer', default => '0', not_null => 1 },
        explored   => { type => 'integer', default => '0', not_null => 1 },
        timer      => { type => 'bigint', default => '0', not_null => 1 },
        mobcount1  => { type => 'integer', default => '0', not_null => 1 },
        mobcount2  => { type => 'integer', default => '0', not_null => 1 },
        mobcount3  => { type => 'integer', default => '0', not_null => 1 },
        mobcount4  => { type => 'integer', default => '0', not_null => 1 },
        itemcount1 => { type => 'integer', default => '0', not_null => 1 },
        itemcount2 => { type => 'integer', default => '0', not_null => 1 },
        itemcount3 => { type => 'integer', default => '0', not_null => 1 },
        itemcount4 => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guid', 'quest' ],
);

1;

package Mangos::DB::Characters::CharacterQueststatus::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::CharacterQueststatus' }

__PACKAGE__->make_manager_methods('character_queststatus');

1;
